//------------------------------------------------------------------------------
//
//   Go4Flex 
//   Copyright 2010 
//   All rights reserved. 
//
//------------------------------------------------------------------------------

package com.go4flex.usermanager.usercontrol.event
{
	import com.go4flex.usermanager.usercontrol.vo.GroupVO;
	import com.go4flex.usermanager.usercontrol.vo.UserVO;

	import flash.events.Event;

	[Bindable]
	public class UserControlEvent extends Event
	{

		//--------------------------------------------------------------------------
		//
		//  Constants
		//
		//--------------------------------------------------------------------------

		public static var GET_USERS_LIST:String = "getUsersListUserControlEvent";
		public static var GET_GROUPS_LIST:String = "getGroupsListUserControlEvent";
		public static var GET_PERMISSIONS_LIST:String = "getPermissionsListUserControlEvent";

		public static var UPDATE_USER:String = "updateUserControlEvent";
		public static var ADD_USER:String = "addUserControlEvent";
		public static var DELETE_USER_BY_ID:String = "deleteByIdUserControlEvent";

		public static var UPDATE_GROUP:String = "updateGroupUserControlEvent";
		public static var ADD_GROUP:String = "addGroupUserControlEvent";
		public static var DELETE_GROUP_BY_ID:String = "deleteGroupByIdUserControlEvent";

		//--------------------------------------------------------------------------
		//
		//  Properties
		//
		//--------------------------------------------------------------------------

		public var user:UserVO;
		public var group:GroupVO;

		//--------------------------------------------------------------------------
		//
		//  Constructor
		//
		//--------------------------------------------------------------------------
		public function UserControlEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);
		}
	}
}